using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Database;
using Database.Repository;
using Domain.Repository;

namespace Host.Inject.IoC
{
    public class RepositoryInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Component.For<IApplicationRepository>().ImplementedBy<ApplicationRepository>());
            container.Register(Component.For<IUserRepository>().ImplementedBy<UserRepository>());
            container.Register(Component.For<ITaskRepository>().ImplementedBy<TaskRepository>());
        }
    }
}